#!/bin/bash 

read -p "请输入第一个字符串:" STR1
read -p "请输入第二个字符串:" STR2
# 判断字符串是否为 非空
if [ -n "$STR1" ]
then
	echo "yes"
else
	echo "no"
fi

# 判断字符串是否为空
if [ -z "$STR1" ]
then
	echo "yes"
else
	echo "no"
fi

# 判断字符串大小
if [ "$STR1" == "$STR2" ]
then
	echo "=="
else
	echo "!="
	if [ "$STR1" \> "$STR2" ]
	then
		echo ">>>"
	else
		echo "<<<"
	fi
fi
